From 657d11ce72c905832b9b169354352f521f42207a Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 29 Jan 2022 23:00:54 +0100
Subject: fix: set current project title in breadcrumb

---
 src/pages/projet/[slug].tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/pages/projet/[slug].tsx')

diff --git a/src/pages/projet/[slug].tsx b/src/pages/projet/[slug].tsx
index 14ddf9c..f44d810 100644
--- a/src/pages/projet/[slug].tsx
+++ b/src/pages/projet/[slug].tsx
@@ -131,11 +131,11 @@ interface ProjectParams extends ParsedUrlQuery {
 export const getStaticProps: GetStaticProps = async (
   context: GetStaticPropsContext
 ) => {
-  const breadcrumbTitle = '';
   const { locale } = context;
   const translation = await loadTranslation(locale);
   const { slug } = context.params as ProjectParams;
   const project = await getProjectData(slug);
+  const breadcrumbTitle = project.title;
 
   return {
     props: {
-- 
cgit v1.2.3

